<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="http://www.baidu.com">
  用户名<input type="text" size="50" name="username" placeholder="请输入用户名" maxlength="5"><br>
  密码<input type="password" readonly size="50" name="password" placeholder="请输入密码" value="123456"><br>

  <input type="radio" name="gender" value="男" checked id="r1">
  <label for="r1">男</label>
  <input type="radio" name="gender" value="女" id="r2">
  <label for="r2">女</label>
  <br>

  <input type="checkbox" name="hobby" value="smoke" id="smoke">
  <label for="smoke">抽烟</label>
  <input type="checkbox" name="hobby" value="drink" checked id="drink">
  <label for="drink">喝酒</label>
  <input type="checkbox" name="hobby" value="haircut" id="haircut">
  <label for="haircut">烫头</label>
  <br>

  生日：<input type="date" name="birthday">
  <br>
  靓照：<input type="file" name="picture">
  <br>
  出生地：
  <select name="city">
    <option value="beijing">北京</option>
    <option value="shanghai" selected>上海</option>
    <option value="guangzhou">广州</option>
  </select>
  <br>

  <input type="submit" value="注册">
  <input type="reset" value="重置">
  <input type="button" value="自定义按钮">
  <hr>
  <button type="submit">注册</button>
  <button type="reset">重置</button>
  <button type="button">自定义按钮</button>
</form>
</body>
</html>